{% extends 'base.html' %}
{% block head %}
    <link rel="stylesheet" href={{ url_for('static', filename='css/register.css') }}>
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
{% endblock %}
{% block title %}登录{% endblock %}
{% block content %}
    <div class="container">
        <div class="row" style="margin-top: 20px;">
            <div class="col-3"></div>
            <div class=" col-md-6 col-md-offset-3">
                <form action="{{ url_for('auth.login') }}" method="post">
                    <div class="form-group">
                        <label for="username">用户名</label>
                        <input type="text" name="username" placeholder="用户名" class="form-control">
                    </div>
                    <div class="form-group">
                        <label for="password">密码</label>
                        <input type="password" name="password" placeholder="密码" class="form-control">
                    </div>
                    <div class="col-md-12 text-center">
                        <input type="submit" value="登录" class="btn btn-primary col-3" style="margin-top: 20px;">
                    </div>
                    <div class="form-group">
                        <a href="{{ url_for('auth.register') }}">没有账号？去注册</a>
                    </div>
                </form>
            </div>
        </div>
    </div>

{% endblock %}